package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.efoms.constant.CheckRecordInfoSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.CheckRecodeInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.ICheckRecodeInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;
@Service
@Transactional
public class CheckRecodeInfoMapper extends BaseMapper<CheckRecodeInfo> implements ICheckRecodeInfoMapper{

	@Override
	public Page getCheckRecordInfoPage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(CheckRecordInfoSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<CheckRecodeInfo> getCheckRecordInfoList(Map<String,Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(CheckRecordInfoSqlId.SQL_SELECT_LIST), map);
	}

	@Override
	public List<CheckRecodeInfo> getCheckCountForDeptIdAndSum() {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(CheckRecordInfoSqlId.SQL_SELECT_COUNT));
	}
	
}
